var express = require('express');
var router = express.Router();
var db = require('../db/mysql')
var response = require('../response')
var fs = require('fs');

router.post('/', function (req, res, next) {
  var str_json = JSON.stringify(req.body);
  fs.writeFile(`static/upload/${new Date().getTime()}.json`, str_json, 'utf8', function(){
      // 保存完成后的回调函数
      response.success(res, `Exprot success`)
  });
});
module.exports = router;